<!DOCTYPE html>
<html>
<style>
    .control-label{
        padding: 6px 0px;
    }
    .group-block{
        margin-top: 15px !important;
    }
</style>

<head>
    <title>banner管理</title>
		<#include "/header.html">

</head>


<body>


<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("business:tbanner:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;添加</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <!--新增-->
    <div id="add" v-show="!showList">
        <form class="form-inline">

                <div class="col-sm-12 form-group group-block">
                    <label  class="col-sm-4 control-label">banner名称:</label>
                    <div class="col-sm-8">
                        <input type="text" class="form-control" v-model="tBanner.bannerName" placeholder="不超过15个字"/>
                    </div>
                </div>

                <div class="col-sm-12 form-group group-block">
                    <label  class="col-sm-4 control-label">banner图片:</label>
                    <div class="col-sm-8">
                        <input type="file" name="file" class="layui-upload-file">
                        <div>{{msg}}</div>
                    </div>
                </div>

                <div class="col-sm-12 form-group group-block">
                    <label  class="col-sm-4 control-label">链接地址:</label>
                    <div class="col-sm-8">
                        <input type="text" class="form-control" v-model="tBanner.url" placeholder="选填"/>
                    </div>
                </div>


        </form>
    </div>


</div>
<script src="${request.contextPath}/statics/plugins/layui/layui.js"></script>
<script src="${request.contextPath}/statics/js/modules/business/banner.js?_${.now?long}"></script>
</body>
</html>